package hello.service.impl;

import hello.entity.Student;
import hello.mapper.StudentMapper;
import hello.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StudentServiceImpl implements StudentService {

    @Autowired
    StudentMapper studentMapper;

    @Override
    public boolean login(String username, String password) {
        System.out.println("service");
        Student student = studentMapper.login(username, password);
        return student != null;
    }
}
